package com.ant.storage.mapper;

import com.ant.storage.pojo.AllocationWarehouseOut;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface AllocationWarehouseOutMapper extends BaseMapper<AllocationWarehouseOut> {

    //调拨出库查询
    List<AllocationWarehouseOut> queryAllocationWarehouseOut(Integer newPage, Integer newLimit, @Param(value = "map") Map map);

    //出库中间表插入
    void updateAllocationAndCommodity(Integer allocation_id, Integer commodityId, Integer commodity_out_quantity);

    Integer countAllocationWarehouseOut(@Param(value = "map") Map map);
}
